const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 关闭vue生产的影响
  lintOnSave: false,
  // 反向代理api的全局配置
  devServer: {
    proxy: {
      "/api": {
        // 后端api地址
        target: "http://127.0.0.1:8000/api/",
        changOrigin: true,
        pathRewrite: {
          "^/api": " ", //重写路径,将/api替换为空白
        },
      },
    },
  },
});

